#include "StaticJavaLib.h"
#include "gc.h"
struct ForwardClassTest{
};

struct Foo2{
  struct Bar* b;
};

struct Bar{
  int x;
};

void main(int argc,char** argv){
  struct Foo2* a;
  gc_add_root_node(&a);
  a = (struct Foo2*)gc_malloc(sizeof(struct Foo2));
  a->b = (struct Bar*)gc_malloc(sizeof(struct Bar));
  a->b->x = 5;
  gc_free_root_node(&a);
  gc_recycle();
}
